package com.topisv.tms.entity.stock.instorage;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.topisv.tms.entity.IdEntity;

/**
 * 上架任务分配
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-4-10      CC            1.0           Create
 */
@Entity
@Table(name = "instorage_up_dispatch_task")
public class InstorageUpDispatchTask extends IdEntity {
	private static final long serialVersionUID = 1L;
	private String taskCode;// 任务号
	private String workerUuid;// 分配人
	private String status;// 状态0:未处理 1:已领取 2:已分配
	private InstorageBill instorageBill;

	public String getTaskCode() {
		return taskCode;
	}

	public void setTaskCode(String taskCode) {
		this.taskCode = taskCode;
	}

	public String getWorkerUuid() {
		return workerUuid;
	}

	public void setWorkerUuid(String workerUuid) {
		this.workerUuid = workerUuid;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@ManyToOne()
	@JoinColumn(name = "bill_id")
	public InstorageBill getInstorageBill() {
		return instorageBill;
	}

	public void setInstorageBill(InstorageBill instorageBill) {
		this.instorageBill = instorageBill;
	}

}
